package com.fire.model.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fire.model.enums.SmartEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 智能导航表
 * </p>
 *
 * @author author
 * @since 2024-04-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("f_smart")
@ApiModel(value="Smart对象", description="智能导航表")
public class Smart implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "报警具体位置")
    private String locationName;

    @ApiModelProperty(value = "位置：经度")
    private String longitude;

    @ApiModelProperty(value = "位置：纬度")
    private String latitude;

    @ApiModelProperty(value = "导航发送状态：0：未发送；1：已发送")
    private SmartEnum status;

    @ApiModelProperty(value = "报警时段")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
}
